Template Design Tool

Templates are used to define custom HTML content that can be used in dataviews, table columns, links, and other data elements.

The Editing group contains the following standard options.

Open Opens the Select Template panel with the Templates group expanded, providing access to the existing templates. If a template is already open, it will be closed without saving.
Save Saves the current template.
New Opens the Select Template panel with the General group expanded, allowing the creation of a new template. If a template is already open, it will be closed without saving.
Options Opens the Configuration panel with the General group expanded, providing access to the settings for the current template.
Export This option is not available for this tool.
Import This option is not available for this tool.

Select Template Panel

The Select Template panel opens to the right of the screen when selecting Open or New from the Edit group. Click X to close the panel again.

The options are divided into groups, depending on which feature opened the panel.

Templates

This group is used to open an existing template saved in the system.

Click the name to open the template in the Template Editor. Text can be entered into the Filter field to find specific templates.

General

This group is used to create a new template.

Name Enter the name of the new template.
  The text in this field can be translated .
Description Enter a description of the template.
  The text in this field can be translated .
Who will get access to Select if the template is private or shared. This affects the ability to see and edit the template in the Template Design Tool, and the ability to see the template in Analysis mode.
  • Only me
Only you will be able to see this template.
  • Everyone
The template will be visible to all users.
  • People with any of the following security roles
Only accessible to users with a specific security role assigned to their user account. Select this option and enter the Code of the required security role.
Multiple roles can be provided, formatted as comma-separated and without spaces. If a user has at least one of these roles, they will be able to see the template.

Click Create Template to display the template in the Template Editor. Note that the template is not yet saved at this point.

Template Configuration Panel

The Configuration panel opens to the right of the screen when selecting Options from the Edit group. Click X to close the panel again.

This panel is used to edit the configuration options for the current template.

Name The name of the template can be changed.
  The text in this field can be translated .
Description The description of the template can be changed.
  The text in this field can be translated .
Usage Select where the template is meant to be used. This determines if the template will be available for selection in each area. This field displays the number of areas selected.
  • Standalone Static Content
The template can be selected as static content for a cell in the dashboard.
  • Column Custom Display
The template can be selected as content for a table column.
  • Row Links Dropdown Template
The template can be selected as a custom link format.
  • Data Custom Display
The template can be selected as a custom display mode for dataviews.
Active Select if the template is active. An inactive template will still function in any existing configurations, but cannot be added to new configurations.
Who will get access to Select if the template is private or shared. This affects the ability to see and edit the template in the Template Design Tool, and the ability to see the template in Analysis mode.
  • Only me
Only you will be able to see this template.
  • Everyone
The template will be visible to all users.
  • People with any of the following security roles
Only accessible to users with a specific security role assigned to their user account. Select this option and enter the Code of the required security role.
Multiple roles can be provided, formatted as comma-separated and without spaces. If a user has at least one of these roles, they will be able to see the template.
Created by Identifies the date and time the template was created, and the user who created it.
Last Modified by Identifies the last date and time the template was changed, and the user who made the changes.

Changes are saved when the template is saved.

Template Editor Screen

The Template Editor screen is used to build and test the custom HTML content.

The screen is composed of five cells.

The HTML cell is used to enter the HTML code. The editor uses common color-coded formatting to present the HTML structure.

Variables can be inserted into the HTML code, allowing dynamic data to be taken from other sources. To insert a variable, enter the name of the variable between two dollar signs ($), then place the cursor anywhere within the variable name and press Alt+Enter. The variable is added to the Variables list.

A variable can be renamed by changing the text and using Alt+Enter to add it to the Variables list again. Note that the original variable will still exist in the list, and will need to be deleted manually.

In addition to variables, the editor supports custom HTML tags.

<RepeatPerRow> ... </RepeatPerRow> This tag is used to repeat the content between the tag and closing tag for each row in a table.

Note: Templates only support basic HTML content. Content in Java, Flash, or other formats is not supported.

The CSS cell is used to enter any CSS code that should be applied to the HTML. CSS is not required, as all formatting can be applied locally within the HTML content, but it may be simpler for complex or recurring formatting.

Variables can be inserted into the CSS, allowing the formatting to be adjusted by dynamic data in the dashboard. To insert a variable, enter the name of the variable between two dollar signs ($), then place the cursor anywhere within the variable name and press Alt+Enter. The variable is added to the Variables list.

A variable can be renamed by changing the text and using Alt+Enter to add it to the Variables list again. Note that the original variable will still exist in the list, and will need to be deleted manually.

The Preview cell displays the results of the current HTML and CSS. Any variables will be displayed using their default values.

As variables are added to the HTML and CSS cells, they appear in the Variables list. Click on a variable to view the details in the Properties cell, or click the Remove icon to delete the variable.

The Properties cell contains settings for variables listed in the Variables cell. Click on a variable in the Variables cell to view the details.

Name Displays the name of the variable, as defined in the HTML or CSS. The name cannot be changed once the variable has been added. If a different name is required, a new variable with the correct name can be created in the HTML or CSS.
Label Enter a label for the variable. This label will be visible when configuring variables in associated dataviews or static contents.
Description Enter a description for the variable.
Type Select the type of the variable. This will control the type of data that can be provided for the variable. In the Variables panel of a dataview configuration, the variable type may also have a special field type appropriate for the values being provided or selected.
  • None
With no defined type, the variable has no effect.
  • Text
This variable type is meant for text content. This can be used to define text for display, or as parameters for HTML or CSS configurations.
  • Color
This variable is used for color values. A color-picker field is used when setting the variable.
  • Image
This variable allows the selection of images files that have been uploaded to SmartView. Note that a default value cannot be applied for this variable. The image can only be selected in the dataview configuration.
  • Dimension
This variable takes a single integer value to be used as a parameter for an HTML component. Some examples include font sizes, image widths, and corner radius values. An integer value field is used when setting the variable.
  • Rows Count
This is a reserved internal setting. A text-entry field is used when setting the variable.
  • Alignment
This variable is meant for horizontal alignment settings. A text-entry field is used when setting the variable.
  • Vertical Alignment
This variable is meant for vertical alignment settings. A text-entry field is used when setting the variable.
  • Font Family
This variable is meant to define the name of a font family. A text-entry field is used when setting the variable.
  • Background
This variable is meant to provide all attributes to be used with the background settings for one or more HTML or CSS components. A text-entry field is used when setting the variable.
  • Boolean
This variable is meant to define true or false boolean values. A switch control is used when setting the variable.
  • Checked Attribute
This variable is meant to define is an attribute is checked or not. A switch control is used when setting the variable.
Default Value Enter a default value. This is the value that will be used when no other value has been received. If no default value is defined, then the name of the variable will be used. If the variable is used in an HTML or CSS element that requires a value, then a default should be provided to avoid errors.
Scope Select how the variable is intended to be used.
  • None
With no defined scope, the variable has no effect.
  • Content
The variable is used exclusively in the HTML.
  • Style
The variable is used exclusively in the CSS.
  • Content and Style
The variable is used in either the HTML or CSS.

When all changes have been made, click Save to save the template.